package com.sye.reflectmodule.javabean;

import javax.annotation.Generated;

public class Person {
    @Deprecated
    private String name;
    private Integer age;
    public Person(){}

    public Person(String name){
        this.name=name;
    }

    public Person(Integer age){
        this.age=age;
    }

    public Person(String name,Integer age){
        this.name=name;
        this.age=age;
        System.out.println(name+":"+age);
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public Integer getAge() {
        return age;
    }

    /**
     * 私有方法
     */
    private void titleInfo(String title){
        System.out.println(title);
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
